package com.wteam.PoJo.DTO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class goods_type implements Serializable {
    @ApiModelProperty(value = "商品类型（唯一v）", required = true)
    @NotEmpty
    private String name;

    @ApiModelProperty(required = false)
    private Integer id;
    @ApiModelProperty(required = false)
    @TableField(fill = FieldFill.INSERT)
    private String CreateBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(required = false)
    private LocalDateTime CreateTime;

    @TableLogic(value = "2", delval = "1")
    @ApiModelProperty(required = false)
    private Boolean DeleteFlag;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(required = false)
    private String UpdateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(required = false)
    private LocalDateTime UpdateTime;

//    @ApiModelProperty(required = false)
//    private Integer MemberId;


}
